package com.frxuexi.shop2307.adapter

import androidx.databinding.DataBindingUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.room.SignEntity
import com.frxuexi.shop2307.R
import com.frxuexi.shop2307.databinding.ItemSignScoreBinding

class SignScoreAdapter:BaseQuickAdapter<SignEntity,BaseViewHolder>(R.layout.item_sign_score) {
    override fun onItemViewHolderCreated(viewHolder: BaseViewHolder, viewType: Int) {
        super.onItemViewHolderCreated(viewHolder, viewType)
        DataBindingUtil.bind<ItemSignScoreBinding>(viewHolder.itemView)
    }
    override fun convert(helper: BaseViewHolder, item: SignEntity) {
        val binding = DataBindingUtil.getBinding<ItemSignScoreBinding>(helper.itemView)!!
        binding.bean=item
    }
}